{if $groupId==1}
<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i
                                class="fa fa-refresh"></i> </a>
                        <a href="javascript:;"
                            class="btn btn-success btn-add {:$auth->check('family/home/add')?'':'hide'}"
                            title="{:__('Add')}"><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;"
                            class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('family/home/edit')?'':'hide'}"
                            title="{:__('Edit')}"><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;"
                            class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('family/home/del')?'':'hide'}"
                            title="{:__('Delete')}"><i class="fa fa-trash"></i> {:__('Delete')}</a>

                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                        data-operate-edit="{:$auth->check('family/home/edit')}"
                        data-operate-del="{:$auth->check('family/home/del')}" width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
{/if}

{if $groupId==2|| $groupId==3}

<style>
    .profile-avatar-container {
        position: relative;
        width: 100px;
        margin: 0 auto;
    }

    .profile-avatar-container .profile-user-img {
        width: 100px;
        height: 100px;
    }

    .profile-avatar-container .profile-avatar-text {
        display: none;
    }

    .profile-avatar-container:hover .profile-avatar-text {
        display: block;
        position: absolute;
        height: 100px;
        width: 100px;
        background: #444;
        opacity: .6;
        color: #fff;
        top: 0;
        left: 0;
        line-height: 100px;
        text-align: center;
    }

    .profile-avatar-container button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100px;
        height: 100px;
        opacity: 0;
    }
</style>
<div class="row animated fadeInRight">
    <div class="col-md-12">
        <div class="box box-primary">
            <div class="panel-heading">
                {:__('家庭资料')}
            </div>
            <div class="panel-body">
                <form id="update-form" role="form" data-toggle="validator" method="POST"
                    action="{:url('general.profile/update')}">
                    {:token()}
                    <input type="hidden" id="c-avatar" name="row[home_image]" value="{$list.home_image|htmlentities}" />
                    <div class="box-body box-profile">
                        <div class="profile-avatar-container">
                            <img class="profile-user-img img-responsive img-circle"
                                src="{$list.home_image|cdnurl|htmlentities}" alt="">
                            <div class="profile-avatar-text img-circle">{:__('更改图片')}</div>
                            <button type="button" id="faupload-avatar" class="faupload" data-input-id="c-avatar"><i
                                    class="fa fa-upload"></i> {:__('Upload')}</button>
                        </div>
                        <h3 class="profile-home_name text-center">{$list.home_name|htmlentities}</h3>
                        <div class="form-group">
                            <label for="number" class="control-label">{:__('Number')}:</label>
                            <input type="text" class="form-control" id="number" name="row[number]"
                                value="{$list.number|htmlentities}" />
                        </div>
                        <div class="form-group">
                            <label for="home_name" class="control-label">{:__('Home_name')}:</label>
                            <input type="text" class="form-control" id="home_name" name="row[home_name]"
                                value="{$list.home_name|htmlentities}" />
                        </div>
                        <div class="form-group">
                            <label for="home_admin" class="control-label">{:__('Home_admin')}:</label>
                            <input type="text" class="form-control" id="home_admin" name="row[home_admin]"
                                value="{$list.home_admin|htmlentities}" />
                        </div>
                        <div class="form-group">
                            <label for="home_size" class="control-label">{:__('home_size')}:</label>
                            <input type="text" class="form-control" id="home_size" name="row[home_size]"
                                value="{$list.home_size|htmlentities}" />
                        </div>
                        <div class="form-group">
                            {if $groupId==2}
                            <a href="javascript:;" class="btn btn-danger btn-del btn-disabled testmail"
                                title="{:__('删除')}"><i class="fa fa-trash"></i> {:__('删除家庭')}</a>
                            {/if}
                            {if $groupId==3}
                            <a href="javascript:;" class="btn btn-danger btn-del btn-disabled testmail"
                                title="{:__('退出')}"><i class="fa fa-trash"></i> {:__('退出家庭')}</a>
                            {/if}
                        </div>

                    </div>
                </form>
            </div>
        </div>

    </div>

</div>


{/if}